nhooyr.io/websocket.header.payloadLength (field)
21 uses
nhooyr.io/websocket (current package)
close.go#L201: for i := int64(0); i < h.payloadLength; i++ {
frame.go#L45: payloadLength int64
frame.go#L78: h.payloadLength = int64(payloadLength)
frame.go#L81: h.payloadLength = int64(binary.BigEndian.Uint16(readBuf))
frame.go#L84: h.payloadLength = int64(binary.BigEndian.Uint64(readBuf))
frame.go#L90: if h.payloadLength < 0 {
frame.go#L91: return header{}, fmt.Errorf("received negative payload length: %v", h.payloadLength)
frame.go#L141: case h.payloadLength > math.MaxUint16:
frame.go#L143: case h.payloadLength > 125:
frame.go#L145: case h.payloadLength >= 0:
frame.go#L146: lengthByte |= byte(h.payloadLength)
frame.go#L154: case h.payloadLength > math.MaxUint16:
frame.go#L155: binary.BigEndian.PutUint64(buf, uint64(h.payloadLength))
frame.go#L157: case h.payloadLength > 125:
frame.go#L158: binary.BigEndian.PutUint16(buf, uint16(h.payloadLength))
read.go#L270: if h.payloadLength < 0 || h.payloadLength > maxControlPayload {
read.go#L271: err := fmt.Errorf("received control frame payload with invalid length: %d", h.payloadLength)
read.go#L285: b := c.readControlBuf[:h.payloadLength]
read.go#L393: mr.payloadLength = h.payloadLength
write.go#L293: c.writeHeader.payloadLength = int64(len(p))
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |